package com.cy.listener;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import com.cy.controller.MasterController;
import com.cy.member.parent.Chessman;
import com.cy.member.parent.ChineseChessman;
/**
 * 棋子监听器
 * @author CY
 *
 */
public class ChessmanListener extends MouseAdapter {

	@Override
	public void mouseClicked(MouseEvent e) {
		ChineseChessman chessman = ((Chessman) e.getComponent()).getChineseChessman();
		//将被点击的棋子传给总控
		MasterController.Clicked(chessman);
	}

}
